#!/usr/bin/env python  
# encoding: utf-8  
""" 
@version: v1.0 
@author: W_H_J 
@license: Apache Licence  
@contact: 415900617@qq.com 
@software: PyCharm 
@file: quickMark.py 
@time: 2018/10/19 18:43 
@describe: python二维码生成
github:https://github.com/sylnsfar/qrcode/blob/master/README-cn.md
"""
import sys
import os

sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/' + '..'))
sys.path.append("..")
from MyQR import myqr
# 个人博客
strCsdn = "https://blog.csdn.net/sinat_32651363"
# 生成普通二维码
myqr.run(words=strCsdn, save_name="csdn01.png", colorized=False)
# 生成彩色图片背景二维码
myqr.run(words=strCsdn, save_name="csdn02.png", colorized=True, picture="./background.jpg", level='H')